package center.leon.zoofeignsentinelapi.monkey.service;

import center.leon.zoofeignsentinelapi.common.Response;
import center.leon.zoofeignsentinelapi.monkey.dto.Monkey;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author : Leon on XXM Mac
 * @since : create in 2024/8/20 10:32
 */
@ResponseBody
@FeignClient(value = "zoo-feign-sentinel-impl-alpha", contextId = "MonkeyServiceApi")
public interface MonkeyServiceApi {

    /**
     * hello monkey
     * @return
     */
    @PostMapping(value = "/monkey/hello/feign/service")
    String helloFeignMonkey(@RequestBody Monkey monkey);

}
